package me.shiqiang.im.msg;

import me.shiqiang.im.enums.MessageCmd;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cuishiqiang
 * @date 2017/12/7 下午7:28
 */
public class SyncMsg extends Resp {

    private Long syncKey;
    private Long userId;

    private List<MsgBody> msgs;

    public SyncMsg() {
        this(10);
    }

    public SyncMsg(int initSize) {
        this.setCmd(MessageCmd.SYNC_MSG_RES);
        this.msgs = new ArrayList<MsgBody>(initSize);
    }

    public List<MsgBody> getMsgs() {
        return msgs;
    }

    public void setMsgs(List<MsgBody> msgs) {
        this.msgs = msgs;
    }

    public Long getSyncKey() {
        return syncKey;
    }

    public void setSyncKey(Long syncKey) {
        this.syncKey = syncKey;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
